package ru.ifmo.common;

import org.w3c.dom.Element;
import ru.ifmo.common.xml.XmlObjectExtractor;

/**
 * @author avhaliullin
 */
public class XmlIntegerExtractor implements XmlObjectExtractor<Integer> {
    public Integer extract(Element source) {
        return Integer.parseInt(source.getTextContent());
    }
}
